package com.zenghus.strategy;

public enum LoginType {
    BAIDU(new BaiDuLogin()), QQ(new QQLogin());

    private Login login;
    LoginType(Login login) {
        this.login=login;
    }

    public Login get(String username,String password){
        this.login.username=username;
        this.login.password=password;
        return this.login;
    }
}
